package music.library

    import java.io.File


//TODO(0) O:Library (all songs, AddSong, RemoveSong, Sort, Find, blah blah blah)

object Library {
  
  def scanFolder(f:File):List[File] = {
      if(!f.isDirectory()) 
        return List(f)
      else
        return (for(file <- f.listFiles()) yield scanFolder(file)).filterNot(_ == Nil).reduceLeft(_:::_);
  }
      

}